<template>
  <div class="home-slideshow">
    <Slideshow :slides=slides autoPlay></Slideshow>
  </div>
</template>

<script>
import { ref } from 'vue'
import { findBanner } from '../../../api/home'
export default {
  name: 'slideshow',
  setup () {
    const slides = ref([])
    findBanner().then(data => {
      slides.value = data.result
    })
    return {
      slides
    }
  }
}
</script>

<style lang="less" scoped>
.home-slideshow {
  width: 1240 - 250px;
  height: 500px;
  position: absolute;
  left: 250px;
  top: 0;
  z-index: 98
}
// 覆盖样式
// .slideshow {
  // :deep(.slideshow-btn.prev) {
    // left: 270px !important;
  // }
  // :deep(.slideshow-indicator) {
    // padding-left: 250px;
  // }
// }
</style>
